package com.yun.zf.common.admin.model.sys;

import com.alibaba.excel.annotation.ExcelProperty;
import com.yun.zf.common.validate.IsMobile;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class AgentBasicMo {
    @ApiModelProperty(value = "姓名",required = true)
    @NotBlank(message = "姓名不能为空")
    private String name;
    @ApiModelProperty(value = "手机号码",required = true)
    @NotBlank(message = "手机号码不能为空")
    @IsMobile(message = "手机号码不正确")
    private String iphone;
    @NotBlank(message = "微信号码不能为空")
    private String weixin;
    @ApiModelProperty(value = "邮箱")
    @ExcelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "备注")
    private String remarks;
    @ApiModelProperty(value = "头像")
    private String avatar;
}
